Public Class frmLogin
    Public ok As Boolean = False
    Private Sub btCancelar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btCancelar.Click
        ok = False
        Close()
    End Sub

    Private Sub btOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btOK.Click
        ok = True
        Close()
    End Sub
End Class